package svc

import (
	"github.com/zeromicro/go-zero/zrpc"
	"project/client/internal/config"
	"project/weeksrv/weeksrvclient"
)

type ServiceContext struct {
	Config  config.Config
	WeekSrv weeksrvclient.Weeksrv
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:  c,
		WeekSrv: weeksrvclient.NewWeeksrv(zrpc.MustNewClient(c.WeekSrv)),
	}
}
